Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENT-10647: Added safety for hub upgrade in packaging scriptlets #1295

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

craigcomstock
Copy link
Contributor

@craigcomstock craigcomstock commented Sep 25, 2023

The pg_ctl stop/start commands don't ensure that the server state is as reqeusted
at the moment that the command returns. Added up to 5 seconds of wait time to
ensure the state is as we want.

Also added some tails of expected logs when failures occur. Either /var/log/postgresql.log
or the specific pg_upgrade logs which may be created and mentioned in the output of that command
failing.

Ticket: ENT-10647
Changelog: title

nickanderson
nickanderson previously approved these changes Sep 25, 2023
vpodzime
vpodzime previously approved these changes Sep 26, 2023
Copy link
Contributor

@vpodzime vpodzime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me otherwise. And YMMV.

packaging/common/cfengine-hub/postinstall.sh Outdated Show resolved Hide resolved
@craigcomstock
Copy link
Contributor Author

@cf-bottom jenkins

@cf-bottom
Copy link

@craigcomstock craigcomstock force-pushed the ENT-10647/master branch 2 times, most recently from a71bba7 to 48c9be6 Compare September 26, 2023 14:49
@craigcomstock
Copy link
Contributor Author

Needed more refactoring, cancelled the last jenkins build. Will test manually locally and then re-start a jenkins build.

@craigcomstock
Copy link
Contributor Author

@cf-bottom jenkins

@cf-bottom
Copy link

@craigcomstock
Copy link
Contributor Author

jenkins run looks good, sequential-tests was ssh flake/failures.

Copy link
Contributor

@vpodzime vpodzime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Squash the commits before merging, please.

Copy link
Contributor

@larsewi larsewi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Squash last commit ✅

…nstall

The pg_ctl stop/start commands don't ensure that the server state is as reqeusted
at the moment that the command returns. Added up to 5 seconds of wait time to
ensure the state is as we want.

Also added some tails of expected logs when failures occur. Either /var/log/postgresql.log
or the specific pg_upgrade logs which may be created and mentioned in the output of that command
failing.

Ticket: ENT-10647
Changelog: title
@craigcomstock
Copy link
Contributor Author

cherry picks
#1299
#1298

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants